﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateUser.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcVehicleInsurance.Models.CustomerPolicyRecord>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <table>
        <tr>
            <th></th>
            <th>
                <h2>policyNumber</h2>
            </th>

            <th>
                policydate
            </th>
            <th>
                policyDuration
            </th>
            <th>
                policyDescribe
            </th>
            <th>
                CompanyID
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
        <td>
              
                <%: Html.ActionLink("Details", "Details", new { id=item.policyNumber })%> 
              
            </td>
           
            <td>
                <%: item.policyNumber %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.policydate) %>
            </td>
            <td>
                <%: item.policyDuration %>
            </td>
            <td>
                <%: item.policyDescribe %>
            </td>
            <td>
                <%: item.CompanyID %>
            </td>

            
        </tr>
 
    
    <% } %>

    </table>

</asp:Content>

